//
//  Model.swift
//  Test
//
//  Created by ming on 2024/8/31.
//

import Foundation

class HomeVModel: BaseVModel<HomeModel> {
    @Published var model: HomeModel?
    
    override func loadData() {
        NetManager.herbive { result in
            switch result {
            case .Success(let baseModel):
                self.model = baseModel.acrmost
            case .Fail(let code, let error):
                self.toast = error.debugDescription
            default:
                print("default")
            }
        }
    }
}
